package cn.sxjzit.officlal.service.impl;

import cn.sxjzit.officlal.entity.Nav;
import cn.sxjzit.officlal.mapper.NavMapper;
import cn.sxjzit.officlal.service.NavService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NavServiceImpl implements NavService {
    @Autowired
    NavMapper navMapper;
    @Override
    public boolean update(Nav nav) {
        return navMapper.update(nav);
    }

    @Override
    public List<Nav> selectAllNav() {
        return navMapper.selectAllNav();
    }

    @Override
    public Nav addNav(Nav nav) {
        return navMapper.addNav(nav);
    }

    @Override
    public boolean deleteNav(int id) {
        return navMapper.deleteNav(id);
    }
}
